﻿@model JSonTest.Items

@{
		ViewBag.Title = "Details";
		Layout = "~/Views/Shared/_Layout.cshtml";
}

<br/>

<div class="panel panel-primary">
		<div class="panel-heading"><h4>@ViewBag.Title of @Model.item_name Item</h4></div>
<div class="panel-body">
	<hr/>
	<dl class="dl-horizontal">
		<dt>
			@Html.DisplayNameFor(model => model.item_name)
		</dt>

		<dd>
			@Html.DisplayFor(model => model.item_name)
		</dd>

		<dt>
			@Html.DisplayNameFor(model => model.item_unit)
		</dt>

		<dd>
			@Html.DisplayFor(model => model.item_unit)
		</dd>

		<dt>
			@Html.DisplayNameFor(model => model.item_quantity)
		</dt>

		<dd>
			@Html.DisplayFor(model => model.item_quantity)
		</dd>

		<dt>
			@Html.DisplayNameFor(model => model.Orders.order_number)
		</dt>

		<dd>
			@Html.DisplayFor(model => model.Orders.order_number)
		</dd>

	</dl>
</div>
</div>

<p>
	  @*@Html.ActionLink("Edit", "Edit", new { id = Model.item_id }) |
		@Html.ActionLink("Back to List", "Items", "Home")*@

		<a href="@Url.Action("Edit", "ItemsEF", new { id = Model.item_id })" class="btn btn-info"><span class="glyphicon glyphicon-edit">&nbsp;</span>Edit</a>		|
		<a href="@Url.Action("Items", "Home")" class="btn btn-primary"><span class="glyphicon glyphicon-arrow-left">&nbsp;</span>Back to List</a>

</p>
